#include <stdio.h>
#include <signal.h>
#include <unistd.h>

void fun(int );

int main(int argc,char* argv[]){
  struct sigaction act;
  
  act.sa_flags = 0;
  act.sa_handler = fun;
  sigemptyset(&act.sa_mask);

  sigaction(SIGINT,&act,NULL);
  pause();

  return 0;
}

void fun(int num){
  printf("catch you is %d\n",num);

}
